package vn.com.unit.springmvc.repo;

import java.util.List;

import vn.com.unit.springmvc.domain.Vendor;

public interface VendorDao
{
    public Vendor findById(Long id);
    
    public Vendor findByCode(String code);

    public Vendor findByName(String name);

    public List<Vendor> findAllOrderedByName();

    public void register(Vendor vendor);
    
    public void update(Vendor vendor);
    
    public void delete(Long id);
}
